﻿namespace Comdiv.QWeb.Serialization.BxlParser {
	public struct BxlLexInfo {
		public int CharIndex;
		public int Column;
		public string File;
		public int Length;
		public int Line;


		public BxlLexInfo(string filename, int line, int col) {
			File = filename;
			Line = line;
			Column = col;
			Length = 0;
			CharIndex = 0;
		}

		public override string ToString() {
			return " at " + (File ?? "") + " : " + Line + ":" + Column;
		}

		public BxlLexInfo Clone() {
			return new BxlLexInfo
			       	{File = File, Line = Line, Column = Column, Length = Length, CharIndex = CharIndex};
		}
	}
}